<?
include "./inc/config.php";


$collection = $db->map;


/* $doc = array();
$doc['title'] = "올래국수";
$doc['desc'] = "맛있다";
$doc['lat'] = "1";
$doc['lng'] = "2";
$doc['regdate'] = "";

//print_r($doc);

$collection->insert($doc); */










// find everything in the collection
$cursor = $collection->find();

// iterate through the results
foreach ($cursor as $obj) {
	echo $obj["_id"] ." " .  $obj["title"] ."<br>";
}

?>